<?php echo $this->Form->create('Productos', array('action' => 'productos')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE PRODUCTOS</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
                <th>Nombre</th>
                <th>Tipo</th>
                <th>Peso Nominal</th>
                <th>Peso Bruto</th>
                <th>Alto</th>
                <th>Ancho</th>
                <th>Origen</th>
                <th>Acciones</th>
            </tr> 
            </thead>
            <tbody>
                <?php $i = 0; ?>
            <?php foreach ($productos as $p): ?>                        
                <tr <?php echo fmod($i, 2) ? "" : "class='bg'" ?>>
                    <td><?php echo $p['Producto']['nombre']; ?></th>
                    <td><?php echo $p['Tipo']['nombre']; ?></td>
                    <td><?php echo $p['Producto']['pesonominal']; ?></td>
                    <td><?php echo $p['Producto']['pesobruto']; ?></td>
                    <td><?php echo $p['Producto']['alto']; ?></td>
                    <td><?php echo $p['Producto']['ancho']; ?></td>
                    <td><?php echo $p['Producto']['origen']; ?></td>
                    <td>
                    <?php echo $this->Html->link($this->Html->image("iconos/edit.png", array("alt" =>'Editar', 'title' => 'Editar')), array('action' => 'editar', $p['Producto']['id']),array('escape' => false)); ?>
                    <?php echo $this->Html->link($this->Html->image("iconos/elim.png", array("alt" =>'Eliminar', 'title' => 'Eliminar')), array('action' => 'eliminar', $p['Producto']['id']),array('escape' => false), 
                        ("Desea eliminar realmente??")); ?>
                    
                    <?php //echo $this->Html->link('MODIFICAR', array('action'=>'editar', $p['Producto']['id']),array('class'=>'inner_a')); ?> 
                    <?php //echo $this->Html->link('ELIMINAR',array('action'=>'eliminar',$p['Producto']['id']),array('class' => 'inner_a'),('Desea realmente eliminar?')); ?>
                    </td>                
                </tr>
                <?php $i++; ?>
            <?php endforeach; ?>              
            </tbody>
        </table>
    </div> 
</div> 


  